<?php
	header("Content-Type: text/html;charset=utf-8");
	include("../function/_nosql.php"); //
	include("../function/function.php");
	include("../_include.user.judge.php");
	$kboy_userid = $_SESSION['kboy_userid'];
	if($kboy_userid){
			// 是否已被删除
			if(getNewsNums("kboy_user","uid=$kboy_userid")<1){
				$_SESSION['kboy_userid'] = "";
				$_SESSION['kboy_user'] = "";
				echo re("login.php");
			}
			// 查询用户信息
			$user_sql = "select * from kboy_user where uid=$kboy_userid";
			$user_rows = mysql_query($user_sql);
			$user_rs = mysql_fetch_array($user_rows);
			$user_nickname = $user_rs['user_nickname'];
		}else{
			$_SESSION['kboy_userid'] = "";
			$_SESSION['kboy_user'] = "";
			echo re("login.php");
		}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <title>个人中心</title>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/style.css"/>
    <script type="text/javascript" src="../js/baidutongji.js"></script>
</head>
<body class="personal">
<div class="container-fluid nopadding">
    <header style="height: 50px;">
        <div class="navbar navbar-default navbar-fixed-top">
            <!--<i class="pull-left iconfont back">&#xe627;</i>-->
            <h4 class="text-center title"><?php
									$LoginH = date("G");
									if($LoginH >=6 && $LoginH < 12){
										echo "上午好";
									}elseif($LoginH >= 12 && $LoginH < 18){
										echo "下午好";
									}else{
										echo "晚上好";
									}								
								?>，<?=$user_nickname?></h4>
        </div>
    </header>
    <div class="xinxi">
    	<?php
    		mysql_query("update kboy_webad set webad_isread=1 where uid='$kboy_userid'");
    		$user_sql = "select * from kboy_webad where uid='$kboy_userid' order by id desc";
			$user_rows = mysql_query($user_sql);
		 while ($user_rs = mysql_fetch_array($user_rows)) {
		 	
		 ?>
		 <div class="xinxi_noe">
        	<ul>
        		<li>支付凭证</li>
        		<li><?php 
        			$user_rs['webadd_addtime'] = strtotime($user_rs['webadd_addtime']);
        			$user_rs['webadd_addtime'] = date("m".'月'."d".'日'." H:i",$user_rs['webadd_addtime']);
        			echo $user_rs['webadd_addtime']; 
        			?></li>
        		<li>支付金额：</li>
        		<li><?php 
        			echo $user_rs['webad_jine'];
        			 ?></li>
        		<li><p><?php echo $user_rs['webad_content']; ?></p>详情：</li>
        	</ul>
        </div>
		 	<?php 
		 }	
    		?>
    </div>
    <footer>
        <nav class="navbar navbar-default navbar-fixed-bottom">
            <div class="col-xs-12 btn-group">
                <a href="index.php" class="col-xs-3 nopadding text-center bottomDiv">
                	首页
                </a> 

                <a href="huodong.php" class="col-xs-3 nopadding text-center bottomDiv">
               	活动
                </a>

                <a href="mycloset.php" class="col-xs-3 nopadding text-center bottomDiv">
             	 社区
                </a>
                
                <a href="personal.php" class="col-xs-3 nopadding text-center bottomDiv">
               	个人中心 
                </a>
            </div>
        </nav>
    </footer>
</div>

<script type="application/javascript" src="js/jquery.min.js"></script>
<script type="application/javascript" src="js/bootstrap.min.js"></script>
<script type="application/javascript">
    $(function () {
        $(".good .close").click(function(){
            $(this).closest(".good").remove();
        });
    });
</script>
<script type="text/javascript">
	var a = document.getElementsByClassName("xinxi");
	alert(a.style.background)
</script>
</body>
</html>